
/*
**************************************************************************************************************
File:         memory_stub.sv
Description:  Defines the DDR3 memory stub
Author     :  Rohit Kulkarni
**************************************************************************************************************
*/

`include "package.sv"

module DDR_memory(DDR_bus IF, input CK);

logic [DATA_WIDTH-1:0]  data_to_send  = DRAM_dummy_data;

assign IF.DQ  = IF.DRAM_d_out ? data_to_send : 'z;

  always_ff @(posedge CK)
  begin
    if(IF.DRAM_d_out)
      data_to_send  <=  data_to_send >> 1;
    else
      data_to_send  <=  data_to_send;
  end
  

  
endmodule






